package cn.tedu.zx.pojo.court.dto;

import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;
import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

@Data
@TableName("album")
@Accessors(chain = true)
public class AlbumAddNewDto implements Serializable {
    @ApiModelProperty(value = "相册名称",required = true,example = "微信")
    @NotNull(message = "添加相册失败，相册名称不能为空")
    private String name;

    @NotNull(message = "添加相册失败，相册简介不能为空")
    @ApiModelProperty(value = "相册简介",required = true,example = "一款多人聊天并支持支付功能的通讯软件")
    private String description;

    @NotNull
    @Range(min = 1,max = 100,message = "请输入1-100之间的数字")
    @ApiModelProperty(value = "排序序号",required = true,example = "56")
    private Integer sort;
}
